import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router' 
//导入elementplus icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//导入elementplus 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入elementplus 国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn.mjs'

import store from './store'
// import dialogDrag from '../src/views/order/orderList/dialogDrag'

//创建图标相关实例
const  app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus, {
    locale: zhCn,
  })
//路由挂载
app.use(router)
app.use(ElementPlus)

//store挂载
app.use(store)

app.mount('#app')

